﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Xiaov.SmartWeb.Infrastructure.Cache
{
    public class CacheFactroy
    {
        private static ICache _icache;

        /// <summary>
        /// 初始化工厂
        /// </summary>
        /// <param name="icache"></param>
        public static void InitCacheFactroy(ICache icache)
        {
            _icache = icache;
        }

        /// <summary>
        /// 调用实例
        /// </summary>
        /// <returns></returns>
        public static ICache Instance()
        {
            return _icache;
        }
    }
}
